import { request } from '@/utils'

export default {
  getBookingHistorys: (params = {},id) => request.post('schedule/booking/'+id, params),
  getUser: () => request.get('/user'),
  getDoctorById: (id)=> request.get(`/doctor/${id}`),
  getPostById: (id) => request.get(`/post/${id}`),
  addPost: (data) => request.post('/post', data),
  updateDepartment: (data) => request.post(`/department/update`, data),
  deleteDepartment: (id) => request.post(`/department/delete/${id}`),
}
